-- GENERATED SPELL FOR [Merithra of the Dream] --


function spell0_15378(pUnit, Event) --@Merithra\'s Wake,n/a--
pUnit:FullCastSpellOnTarget(25145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15378', 2000, 1)
end

function Sorts_15378(pUnit, Event)
local choix_sorts_15378 = math.random(0, 0)
if choix_sorts_15378 == 0 then
pUnit:RegisterEvent('spell0_15378', 1, 1)
end
end

function mob15378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15378', math.random(1500, 3000), 1)
end

function mob15378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15378, 1, 'mob15378_Action')
RegisterUnitEvent(15378, 2, 'mob15378_Leave')
RegisterUnitEvent(15378, 3, 'mob15378_Kill')
RegisterUnitEvent(15378, 4, 'mob15378_Die')
